#ifndef PDIALOG_H
#define PDIALOG_H

#include <QDialog>
#include <QString>
#include "../Include/PP_Const.h"
#include "PPServer/tcpserverbase.h"
#include "ui_pdialog.h"

namespace Ui {
class PDialog;
}

class PDialog : public QDialog
{
    Q_OBJECT

public:
    explicit PDialog(QString qstrTitle = DEFAULT_TITLE_NAME, QWidget *parent = 0);
    ~PDialog();
    QString         GetWindowTitle() const;

protected:
    virtual bool    Init();

private:
    Ui::PDialog *ui;
    QString m_qstrTitle;
    TcpServerBase tcpServer;
};

#endif // PDIALOG_H
